So How Did We Solve The Puzzle?

No way!!! - the solution will be published once forum members have had a reasonable time to complete tto complete it. Although, I would expect images of the solution to appear on the forum fairly quickly. I just posted the teaser image below - although the code displayed in it is an early solution, there is not enough code here to give a hint of how to program the solution.

Beermat Puzzle Old Code

Don't spend any time on the above, the full code will be published, with others, at a later date.